﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="X.WebSite.News.List"
    MasterPageFile="~/Master/Master.Master" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="cph" runat="server">
    <h1>
        News List</h1>
    <asp:GridView ID="gvNewsList" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
        ShowHeader="False" Width="100%">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='/News/<%# Convert.ToString(Eval("Id")) %>.aspx' title='<%# X.Common.StringUtils.HtmlDecode(Convert.ToString(Eval("Title"))) %>'>
                        <%# Eval("Title") %></a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PostTime" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
    </asp:GridView>
</asp:Content>
